﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Init {
    import flash.events.*;
    import Engine.Init.*;
    import L10n.LocaleSettings.*;
    import L10n.*;

    public class LocaleFontInit extends InitializationAction {

        public static const INIT_ID:String = "LocaleFontInit";

        public function LocaleFontInit(){
            super(INIT_ID);
            addDependency(BootstrapInit.INIT_ID);
        }
        override public function execute():void{
            LocaleHelper.localSetting.addEventListener(LocaleSetting.FONT_ASSET_LOADED, this.onLocaleFontLoaded);
            LocaleHelper.localSetting.loadFontAsset();
        }
        private function onLocaleFontLoaded(_arg1:Event):void{
            dispatchEvent(new Event(Event.COMPLETE));
        }

    }
}//package Init 
